package com.googlecode.gingerman.robot;

import java.util.List;
import ui.Paintable;

public class Health implements Paintable{
	private Robot robot;
	
	public Health(Robot robot){
		this.robot=robot;
	}

	public double getAngle() {
		return 0;
	}

	public List<Paintable> getPaintableChildren() {
		return null;
	}

	public String getView() {
		switch(robot.getHealth()){
			case 5: return "health5";
			case 4: return "health4";
			case 3: return "health3";
			case 2: return "health2";
			case 1: return "health1";
			case 0: return "health0";
			default: return "health5";
		}
	}

	public double getX() {
		return robot.getX();
	}

	public double getY() {
		return robot.getY()-robot.getRadius()-5;
	}

}
